package com.example.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    private int age;
    private String name;

    public static void main(String[] args) {
        User user1 = new User();
        user1.setAge(16);
        user1.setName("zhangsan");
        User user2 = new User(18,"lisi");
        System.out.println(user1.toString());
        System.out.println(user2.toString());
    }
}
